package test;

import test.fly.FlyNo;

/**
 * @Author: Wyndem
 * @Description: 橡皮鸭
 * @Date: Created in  2019-01-20 18:18
 * @Modified By:
 */
public class RubberDuck  extends Duck{


    //橡皮鸭不会飞
    public RubberDuck() {
        setFlyPattern(new FlyNo());
    }



    @Override
    public void display() {
        System.out.println("我是橡皮鸭，我需要火箭才能飞行");
    }
}
